package com.link.base.base.fund.dao.mybatis.mapper;

import com.link.base.base.fund.model.BillDetailModel;
import com.link.base.base.fund.model.DealerTransactionDetail;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/12 10:25
 * @version 1.0
 */

public interface DealerTransactionDetailMapper extends BasicMapper<DealerTransactionDetail> {

    public List<DealerTransactionDetail> queryByPeriod(DealerTransactionDetail detail);

    /***
     * 查询关联企业下指定条件的交易明细
     * @param billDetailModel
     * @return list 列表
     * @throws Exception
     */
    public List<BillDetailModel> queryAllByMultiCond(BillDetailModel billDetailModel) throws Exception;

    /**
     * 通过客户和期间值查询交易明细
     * @param billDetailModel
     * @return list 列表
     * @throws Exception
     */
    public List<BillDetailModel> queryAllByPerAndAccnt(BillDetailModel billDetailModel) throws Exception;

    /**
     * 通过客户、期间值、资金账户类型查询交易余额
     * @param billDetailModel
     * @return list billDetailModel 实体
     * @throws Exception
     */
    public BillDetailModel queryBalanceByPerAndAccnt(BillDetailModel billDetailModel) throws Exception;
}
